package com.yubest.designpattern.behavior.interpreter;

/**
 * 减法解释器
 *
 * @Author: hweiyu
 * @Date: 2022/10/27 9:09
 */
public class SubExpression implements Expression {

    @Override
    public int interpret(Context context) {
        return context.getA() - context.getB();
    }
}
